export const customerInfo = {
    height: 'auto',
    calcHeight: 32,
    // dialogWidth: 900,
    tip: false,
    searchShow: false,
    searchMenuSpan: 6,
    border: true,
    index: true,
    selection: true,
    reserveSelection:true,
    indexLabel: "序号",
    indexWidth: 100,
    labelWidth: 150,
    menuWidth: 160,
    addBtn: false,
    editBtn: false,
    viewBtn: false,
    delBtn: false,
    stripe: true,
    searchIndex: 3,
    searchIcon: false,
    dialogClickModal: false,
    column: [
        {
            label: "id",
            prop: "id",
            type: "input",
            addDisplay: false,
            overHidden: true,
            editDisplay: false,
            viewDisplay: false,
            hide: true,
        },
        {
            label: "客户编号",
            prop: "custNo",
            type: "number",
            search: true,
            fixed: true,
            controls:false,
            align: "center",
            overHidden: true,
            sortable: true,
            width: 120,
        },
        {
            label: "客户名称",
            prop: "custName",
            type: "input",
            search: true,
            fixed: true,
            overHidden: true,
            sortable: true,
            width: 150,
            rules: [{
                required: true,
                message: "请输入客户名称",
                trigger: "blur"
            }],
        },
        {
            label: "英文名称",
            searchLabelWidth: 150,
            width: 200,
            prop: "custNameEn",
            type: "input",
            search: true,
            overHidden: true,
            sortable: true,

        },
        // {
        //     label: "组织机构",
        //     prop: "deptId",
        //     type: "select",
        //     search: true,
        //     sortable: true,
        //     overHidden: true,
        //     width: 120,
        //     filterable: true,
        //     dicUrl: '/api/blade-anwise/common/deptList?deptCategory=1&bodyType=4',
        //     props: {
        //         label: 'deptName',
        //         value: 'id',
        //     },
        //     dataType: 'string',
        //     rules: [{
        //         required: true,
        //         message: "请输入组织机构",
        //         trigger: "blur"
        //     }],
        // },
        {
            label: "客户类别",
            prop: "custType",
            type: "select",
            dicUrl: "/blade-system/dict-biz/dictionary?code=customer_type",
            filterable: true,
            overHidden: true,
            sortable: true,
            width: 120,
            props: {
                label: 'dictValue',
                value: 'dictKey',
            },
            dataType: 'string',
            rules: [{
                required: true,
                message: "请输入客户类别",
                trigger: "blur"
            }],
            search: true,
        },
        {
            label: "停止交易",
            prop: "stopTrading",
            type: "select",
            filterable: true,
            overHidden: true,
            sortable: true,
            width: 120,
            dicUrl: "/blade-system/dict-biz/dictionary?code=biz_yes_no",
            props: {
                label: 'dictValue',
                value: 'dictKey',
            },
            dataType: 'string',
            search: true,
        },
        {
            label: "运输方式",
            prop: "tansportModes",
            type: "select",
            filterable: true,
            overHidden: true,
            sortable: true,
            width: 120,
            dicUrl: "/blade-system/dict-biz/dictionary?code=tansport_modes",
            props: {
                label: 'dictValue',
                value: 'dictKey',
            },
            dataType: 'string',
            search: true,
        },
        {
            label: "贸易条款",
            prop: "tradeTerms",
            type: "select",
            filterable: true,
            overHidden: true,
            sortable: true,
            width: 120,
            dicUrl: "/blade-system/dict-biz/dictionary?code=trade_terms",
            props: {
                label: 'dictValue',
                value: 'dictKey',
            },
            dataType: 'string',
            search: true,
        },
        {
            label: "客户地址",
            prop: "custAddr",
            type: "input",
            span: 24,
            overHidden: true,
            width: 180,
            sortable: true,
            rules: [{
                required: true,
                message: "请输入客户地址",
                trigger: "blur"
            }],
        },
        {
            label: "信用额度",
            prop: "creditLimit",
            overHidden: true,
            sortable: true,
            search: true,
            searchSlot: true,
            type: "input",
            width: 120,
            searchLabelWidth: 150,
        },
        {
            label: "付款条件",
            prop: "paymentTerms",
            type: "select",
            filterable:true,
            overHidden: true,
            sortable: true,
            search:true,
            width: 120,
            dicUrl: '/api/blade-system/dict-biz/dictionary?code=pay_condition',
            props: {
                label: 'dictValue',
                value: 'dictKey',
            },
            dataType: 'string',
        },
        {
            label: "内部提醒",
            prop: "internalReminder",
            type: "textarea",
            overHidden: true,
            sortable: true,
            span: 24,
            hide: true,
        },
        {
            label: "箱唛备注",
            prop: "cartonMarkRemark",
            type: "textarea",
            overHidden: true,
            span: 24,
            hide: true,
        },
        {
            label: "销售备注",
            prop: "salesRemark",
            type: "textarea",
            span: 24,
            hide: true,
        },
        {
            label: "生产备注",
            prop: "prodRemark",
            type: "textarea",
            overHidden: true,
            span: 24,
            hide: true,
        },
        {
            label: "联系人1",
            prop: "contact1",
            overHidden: true,
            sortable: true,
            type: "input",
            width: 120,
        },
        {
            label: "联系人1部门",
            prop: "contactDept1",
            type: "input",
            hide: true,
        },
        {
            label: "联系人1电话",
            prop: "contactPhone1",
            type: "input",
            overHidden: true,
            sortable: true,
            width: 150,
        },
        {
            label: "联系人1邮箱",
            prop: "contactMail1",
            type: "input",
            overHidden: true,
            sortable: true,
            width: 150,
        },
        {
            label: "联系人2",
            prop: "contact2",
            type: "input",
            hide: true,
        },
        {
            label: "联系人2部门",
            prop: "contactDept2",
            type: "input",
            hide: true,
        },
        {
            label: "联系人2电话",
            prop: "contactPhone2",
            type: "input",
            hide: true,
        },
        {
            label: "联系人2邮箱",
            prop: "contactMail2",
            type: "input",
            hide: true,
        },
        {
            label: "联系人3",
            prop: "contact3",
            type: "input",
            hide: true,
        },
        {
            label: "联系人3部门",
            prop: "contactDept3",
            type: "input",
            hide: true,
        },
        {
            label: "联系人3电话",
            prop: "contactPhone3",
            type: "input",
            hide: true,
        },
        {
            label: "联系人3邮箱",
            prop: "contactMail3",
            type: "input",
            hide: true,
        },
        {
            label: "创建人员",
            prop: "createUserName",
            type: "input",
            overHidden: true,
            sortable: true,
            width: 120,
            addDisplay: false,
            editDisplay: false,
            viewDisplay: false,
        },
        {
            label: "创建部门",
            prop: "createDept",
            type: "input",
            addDisplay: false,
            editDisplay: false,
            viewDisplay: false,
            hide: true,
        },
        {
            label: "创建时间",
            prop: "createTime",
            type: "input",
            width: 160,
            search: true,
            sortable: true,
            overHidden: true,
            addDisplay: false,
            editDisplay: false,
            viewDisplay: false,
        },
        {
            label: "修改人",
            prop: "updateUser",
            type: "input",
            addDisplay: false,
            editDisplay: false,
            viewDisplay: false,
            hide: true,
        },
        {
            label: "修改时间",
            prop: "updateTime",
            type: "input",
            addDisplay: false,
            editDisplay: false,
            viewDisplay: false,
            hide: true,
        },
    ]
}
